package gat.dto.req.backgroundUser;

import java.io.Serializable;

import org.springframework.validation.annotation.Validated;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限表
 * @author: tmac
 * @email: tmac
 */
@Validated
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel
public class PermissionsReqDto implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 权限名称 varchar
     */
    @ApiModelProperty(value = "权限名称")
    @JsonProperty(index = 10)
    private String name;
    /**
     * 所属应用 varchar
     */

    /**
     * 节点等级 int4
     */
    @ApiModelProperty(value = "节点等级")
    @JsonProperty(index = 40)
    private Integer level;
    /**
     * 父级id int8
     */
    @ApiModelProperty(value = "父级id")
    @JsonProperty(index = 50)
    private Long parentId;
    /**
     * 权限描述 varchar
     */
    @ApiModelProperty(value = "权限描述")
    @JsonProperty(index = 150)
    private String description;

    /**
     * 路由地址 varchar
     */
    @ApiModelProperty(value = "路由地址")
    @JsonProperty(index = 150)
    private String route;

    /**
     * 路径
     */
    @ApiModelProperty(value = "路径")
    @JsonProperty(index = 150)
    private String path;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    @JsonProperty(index = 150)
    private String icon;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @JsonProperty(index = 150)
    private Integer sort;

    /**
     * 是否展示
     */
    @ApiModelProperty(value = "是否展示")
    @JsonProperty(index = 150)
    private Integer display;


    /**
     * 权限标识
     */
    @ApiModelProperty(value = "权限标识")
    @JsonProperty(index = 150)
    private String permissionsFlag;
}






